package com.ztesoft.ossup.report.domain;

import java.io.Serializable;
import java.util.List;

public class PageData<T> implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = -338479954820907273L;
	long total;
    List<T> rows;
    List<T> cols;
    
    public PageData(){
    	
    }

    public PageData(long total, List<T> rows) {
        this.total = total;
        this.rows = rows;
    }
    
    public PageData(long total, List<T> rows,List<T> cols) {
        this.total = total;
        this.rows = rows;
        this.cols = cols;
    }
    

    public long getTotal() {
        return total;
    }

    public void setTotal(long total) {
        this.total = total;
    }

    public List<T> getRows() {
        return rows;
    }

    public void setRows(List<T> rows) {
        this.rows = rows;
    }


	public List<T> getCols() {
		return cols;
	}


	public void setCols(List<T> cols) {
		this.cols = cols;
	}

	@Override
	public String toString() {
		return "PageData [total=" + total + ", rows=" + rows + ", cols=" + cols + "]";
	}
	
	
    
}